home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Personal Computer World 2009 February
/
PCWFEB09.iso
/
Software
/
Resources
/
Security
/
FULL - PC Tools Spyware Doctor 6 Starter
/
6.0.0.362d-sdVNUNET_45281.exe
/
{tmp}
/
shutdown.vbs
< prev
next >
Wrap
Text File
|
2008-07-08
|
313b
|
14 lines
Sub ShutDown
nLogOff=0
nReboot=2
nForceLogOff=4
nForceReboot=6
nPowerDown=8
nForcePowerDown=12
Set oOS = GetObject("winmgmts:{(Shutdown)}").ExecQuery("Select * from Win32_OperatingSystem")
For Each oOperatingSystem in oOS
oOperatingSystem.Win32Shutdown(nForceReboot)
Next
End sub
ShutDown